#ifndef _STRING_ALGORITHM_
#define _STRING_ALGORITHM_
#include <assert.h>
//case not sensitive
// -1 , 0, 1
int Compare(char* string1 , char* string2){
	assert(string1);
	if(!string1 || !string2)return -2;	
	char* p1 = string1, *p2  = string2;//char* p1 = string1 , p2 = string2; // fuck !!
	char temp1 , temp2;
	char delta = 'a' - 'A';
	while(*p1 && *p2){
		temp1 = *p1 >= 'a' ? *p1 - delta : *p1;
		temp2 = *p2 >= 'a' ? *p2 - delta : *p2;
		if(temp1>temp2)return 1;
		if(temp1<temp2)return -1;
		p1++;
		p2++;
	}
	if(!*p1 && !*p2)return 0; //	if(*p1 && *p2)return 0;
	                                        //   if(*p1)return -1; fuck !!!!
	if(!*p1)return -1;
	return 1;
}

//assign "from" to "to" string
bool Assign(const char* from,char* to){
     if(!from || !to)return false;
	 // while(*from)  // fuck !!   while(!*from)
	 while(*from != '\0') *to ++ = *from ++; 
	 *to = '\0';
	 return true;
}

void Concat(char* string1 , const char* string2){

}


#endif